﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace PH.Logic.Commons
{
    public class Global
    {
        /// <summary>
        /// 主程序数据根目录
        /// </summary>
        internal static string RootFolderPath
        {
            get
            {
                var appDataRootFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData, Environment.SpecialFolderOption.Create), "PhysicalHealth");
                if (!Directory.Exists(appDataRootFolderPath))
                    Directory.CreateDirectory(appDataRootFolderPath);
                return appDataRootFolderPath;
            }
        }
    }
}
